import 'package:enterprise_v6_app/app/core/values/images.dart';
import 'package:enterprise_v6_app/app/data/entities/application/Inventory_system/emergency_base_page_entity.dart';
import 'package:enterprise_v6_app/router/app_pages.dart';
import 'package:get/get.dart';

///应急清单
class EmergencyChecklistController extends GetxController {
  final productiveList = [
    EmergencyBasePage(
      title: '应急物资清单',
      image: AppImages.icon_emergency_material_page,
      icon: AppImages.icon_base_right_arrow,
    ),
    EmergencyBasePage(
      title: '应急队伍清单',
      image: AppImages.icon_emergency_team_page,
      icon: AppImages.icon_base_right_arrow,
    ),
    EmergencyBasePage(
      title: '应急预案清单',
      image: AppImages.icon_emergency_plan_page,
      icon: AppImages.icon_base_right_arrow,
    ),
    EmergencyBasePage(
      title: '应急演练清单',
      image: AppImages.icon_emergency_drill_page,
      icon: AppImages.icon_base_right_arrow,
    ),
  ];

  void onClickItem(EmergencyBasePage e) {
    switch (e.title) {
      case '应急物资清单':
        Get.toNamed(AppRoutes.emergencyMaterialListPage);
        break;
      case '应急队伍清单':
        Get.toNamed(AppRoutes.emergencyTeamListPage);
        break;
      case '应急预案清单':
        Get.toNamed(AppRoutes.emergencyPlanListPage);
        break;
      case '应急演练清单':
        Get.toNamed(AppRoutes.emergencyDrillListPage);
        break;
      default:
        break;
    }
  }
}
